package com.example.qxfw.ybzz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.qxfw.common.entity.xt.RolesUsers;
import com.example.qxfw.ybzz.mapper.RolesUsersMapper;
import com.example.qxfw.ybzz.service.RolesUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RolesUsersServiceImpl implements RolesUsersService {

    @Autowired
    private RolesUsersMapper rolesUsersMapper;

    @Override
    public List<RolesUsers> getList(Integer roleId) {
        QueryWrapper<RolesUsers> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("roleid",roleId);
        List<RolesUsers> rolesUsers = rolesUsersMapper.selectList(queryWrapper);
        return rolesUsers;
    }
}
